package com.shiro.token;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author hjwStart
 * @time 2022-12-15 16:18
 * @version: 1.0
 */
@AllArgsConstructor
public class MyToken implements AuthenticationToken {

    private String userName;

    @Override
    public Object getPrincipal() {
        return userName;
    }

    @Override
    public Object getCredentials() {
        return userName;
    }
}
